{% extends 'SeowebBundle::layout.html.twig' %}


{% block title %}

    {% if is_granted('ROLE_USUARIO') %}
        Mis Datos
    {% else %}
        Ingresar
    {% endif %}
        
{% endblock title %}

{% block headline %}

    {% if is_granted('ROLE_USUARIO') %}
        Mis Datos
    {% else %}
        Ingresar
    {% endif %}


{% endblock headline %}
    

{% block content_row %}

<div class="row-fluid">
    <div class="span4"></div>
    <div class="span4">


            {% if error %}
            <div>{{ error.message }}</div>
            {% endif %}
            <form action="{{ path('login_check') }}" method="post">
            <label for="username">Usuario:</label>
            <input type="text" id="username" name="_username"
                   value="{{ last_username }}" />
            <label for="password">Contraseña:</label>
            <input type="password" id="password" name="_password" /><br>
               <div class="control-group">
                    <div class="controls">
                        <label class="checkbox" >
                            <input type="checkbox" id="no_cerrar" name="_remember_me" checked /> No Cerrar
                        </label>
                    </div>
                </div>

            <input type="submit" class="btn" name="login" value="Acceder" />
            </form> 


    </div>
    <div class="span4"></div>
</div>


{% endblock content_row %}